\hypertarget{a00072}{}\section{E\+:/knet-\/git/knet/knet/list.c 文件参考}
\label{a00072}\index{E\+:/knet-\/git/knet/knet/list.\+c@{E\+:/knet-\/git/knet/knet/list.\+c}}
{\ttfamily \#include $<$stdlib.\+h$>$}\\*
{\ttfamily \#include \char`\"{}list.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}misc.\+h\char`\"{}}\\*
\subsection*{结构体}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{a00007}{\+\_\+dlist\+\_\+node\+\_\+t}
\item 
struct \hyperlink{a00008}{\+\_\+dlist\+\_\+t}
\end{DoxyCompactItemize}
\subsection*{函数}
\begin{DoxyCompactItemize}
\item 
\hyperlink{a00056_ac701f00a0851c97467ae35c382b316b7_ac701f00a0851c97467ae35c382b316b7}{kdlist\+\_\+node\+\_\+t} $\ast$ \hyperlink{a00072_a5580f80fa42399439b7eba9d59faae59_a5580f80fa42399439b7eba9d59faae59}{dlist\+\_\+node\+\_\+create} ()
\begin{DoxyCompactList}\small\item\em 创建链表节点 \end{DoxyCompactList}\item 
\hyperlink{a00056_ac701f00a0851c97467ae35c382b316b7_ac701f00a0851c97467ae35c382b316b7}{kdlist\+\_\+node\+\_\+t} $\ast$ \hyperlink{a00072_a743378abbafebd0aa14ff754c7bbe9b5_a743378abbafebd0aa14ff754c7bbe9b5}{dlist\+\_\+node\+\_\+init} (\hyperlink{a00056_ac701f00a0851c97467ae35c382b316b7_ac701f00a0851c97467ae35c382b316b7}{kdlist\+\_\+node\+\_\+t} $\ast$node)
\begin{DoxyCompactList}\small\item\em 初始化链表节点 \end{DoxyCompactList}\item 
void \hyperlink{a00072_a1e37eb90626c9cb061a4d8536d9e1c71_a1e37eb90626c9cb061a4d8536d9e1c71}{dlist\+\_\+node\+\_\+destroy} (\hyperlink{a00056_ac701f00a0851c97467ae35c382b316b7_ac701f00a0851c97467ae35c382b316b7}{kdlist\+\_\+node\+\_\+t} $\ast$node)
\begin{DoxyCompactList}\small\item\em 销毁链表节点 \end{DoxyCompactList}\item 
\hyperlink{a00056_ac701f00a0851c97467ae35c382b316b7_ac701f00a0851c97467ae35c382b316b7}{kdlist\+\_\+node\+\_\+t} $\ast$ \hyperlink{a00072_ae845fbc2a6ba73590161f04340dabed8_ae845fbc2a6ba73590161f04340dabed8}{dlist\+\_\+node\+\_\+set\+\_\+data} (\hyperlink{a00056_ac701f00a0851c97467ae35c382b316b7_ac701f00a0851c97467ae35c382b316b7}{kdlist\+\_\+node\+\_\+t} $\ast$node, void $\ast$data)
\begin{DoxyCompactList}\small\item\em 设置节点自定义数据 \end{DoxyCompactList}\item 
void $\ast$ \hyperlink{a00072_abc1c6bf7dbfbdf4bffc822ddccf2d07e_abc1c6bf7dbfbdf4bffc822ddccf2d07e}{dlist\+\_\+node\+\_\+get\+\_\+data} (\hyperlink{a00056_ac701f00a0851c97467ae35c382b316b7_ac701f00a0851c97467ae35c382b316b7}{kdlist\+\_\+node\+\_\+t} $\ast$node)
\begin{DoxyCompactList}\small\item\em 取得节点自定义数据 \end{DoxyCompactList}\item 
\hyperlink{a00056_ae098586334a621a23cef7cb17590b618_ae098586334a621a23cef7cb17590b618}{kdlist\+\_\+t} $\ast$ \hyperlink{a00072_a8c365752ad9b0f4b633f397923f9a749_a8c365752ad9b0f4b633f397923f9a749}{dlist\+\_\+create} ()
\begin{DoxyCompactList}\small\item\em 创建链表 \end{DoxyCompactList}\item 
\hyperlink{a00056_ae098586334a621a23cef7cb17590b618_ae098586334a621a23cef7cb17590b618}{kdlist\+\_\+t} $\ast$ \hyperlink{a00072_aa6e2141ad5da25451a8b80a8195adf3d_aa6e2141ad5da25451a8b80a8195adf3d}{dlist\+\_\+init} (\hyperlink{a00056_ae098586334a621a23cef7cb17590b618_ae098586334a621a23cef7cb17590b618}{kdlist\+\_\+t} $\ast$dlist)
\begin{DoxyCompactList}\small\item\em 初始化链表 \end{DoxyCompactList}\item 
void \hyperlink{a00072_a975e582084cc96ee410fb3816f384774_a975e582084cc96ee410fb3816f384774}{dlist\+\_\+destroy} (\hyperlink{a00056_ae098586334a621a23cef7cb17590b618_ae098586334a621a23cef7cb17590b618}{kdlist\+\_\+t} $\ast$dlist)
\begin{DoxyCompactList}\small\item\em 销毁整个链表，并销毁所有节点（不销毁节点内自定义数据） \end{DoxyCompactList}\item 
void \hyperlink{a00072_a60b57b500075cafe4391396066f4a4a4_a60b57b500075cafe4391396066f4a4a4}{dlist\+\_\+add\+\_\+front} (\hyperlink{a00056_ae098586334a621a23cef7cb17590b618_ae098586334a621a23cef7cb17590b618}{kdlist\+\_\+t} $\ast$dlist, \hyperlink{a00056_ac701f00a0851c97467ae35c382b316b7_ac701f00a0851c97467ae35c382b316b7}{kdlist\+\_\+node\+\_\+t} $\ast$node)
\begin{DoxyCompactList}\small\item\em 将节点添加到链表头部 \end{DoxyCompactList}\item 
void \hyperlink{a00072_a24c0ab8543c8088b435b8ac8cef43294_a24c0ab8543c8088b435b8ac8cef43294}{dlist\+\_\+add\+\_\+tail} (\hyperlink{a00056_ae098586334a621a23cef7cb17590b618_ae098586334a621a23cef7cb17590b618}{kdlist\+\_\+t} $\ast$dlist, \hyperlink{a00056_ac701f00a0851c97467ae35c382b316b7_ac701f00a0851c97467ae35c382b316b7}{kdlist\+\_\+node\+\_\+t} $\ast$node)
\begin{DoxyCompactList}\small\item\em 将节点添加到链表尾部 \end{DoxyCompactList}\item 
\hyperlink{a00056_ac701f00a0851c97467ae35c382b316b7_ac701f00a0851c97467ae35c382b316b7}{kdlist\+\_\+node\+\_\+t} $\ast$ \hyperlink{a00072_a0c58623fcbc3f1108a65f1a78a605d42_a0c58623fcbc3f1108a65f1a78a605d42}{dlist\+\_\+add\+\_\+front\+\_\+node} (\hyperlink{a00056_ae098586334a621a23cef7cb17590b618_ae098586334a621a23cef7cb17590b618}{kdlist\+\_\+t} $\ast$dlist, void $\ast$data)
\begin{DoxyCompactList}\small\item\em 建立新节点并添加到链表头部，同时设置节点自定义数据 \end{DoxyCompactList}\item 
\hyperlink{a00056_ac701f00a0851c97467ae35c382b316b7_ac701f00a0851c97467ae35c382b316b7}{kdlist\+\_\+node\+\_\+t} $\ast$ \hyperlink{a00072_aca87625d54662842909b0900be717a3f_aca87625d54662842909b0900be717a3f}{dlist\+\_\+add\+\_\+tail\+\_\+node} (\hyperlink{a00056_ae098586334a621a23cef7cb17590b618_ae098586334a621a23cef7cb17590b618}{kdlist\+\_\+t} $\ast$dlist, void $\ast$data)
\begin{DoxyCompactList}\small\item\em 建立新节点并添加到链表尾部，同时设置节点自定义数据 \end{DoxyCompactList}\item 
int \hyperlink{a00072_ac398fa4051e1d12953a24a9c4b011516_ac398fa4051e1d12953a24a9c4b011516}{dlist\+\_\+get\+\_\+count} (\hyperlink{a00056_ae098586334a621a23cef7cb17590b618_ae098586334a621a23cef7cb17590b618}{kdlist\+\_\+t} $\ast$dlist)
\begin{DoxyCompactList}\small\item\em 取得链表节点数量 \end{DoxyCompactList}\item 
int \hyperlink{a00072_ae6b794873e755bedabfc2e64e45a0dbe_ae6b794873e755bedabfc2e64e45a0dbe}{dlist\+\_\+empty} (\hyperlink{a00056_ae098586334a621a23cef7cb17590b618_ae098586334a621a23cef7cb17590b618}{kdlist\+\_\+t} $\ast$dlist)
\begin{DoxyCompactList}\small\item\em 空 \end{DoxyCompactList}\item 
\hyperlink{a00056_ac701f00a0851c97467ae35c382b316b7_ac701f00a0851c97467ae35c382b316b7}{kdlist\+\_\+node\+\_\+t} $\ast$ \hyperlink{a00072_a4458c5c60c2d15b434d33255429a633d_a4458c5c60c2d15b434d33255429a633d}{dlist\+\_\+remove} (\hyperlink{a00056_ae098586334a621a23cef7cb17590b618_ae098586334a621a23cef7cb17590b618}{kdlist\+\_\+t} $\ast$dlist, \hyperlink{a00056_ac701f00a0851c97467ae35c382b316b7_ac701f00a0851c97467ae35c382b316b7}{kdlist\+\_\+node\+\_\+t} $\ast$node)
\begin{DoxyCompactList}\small\item\em 将节点从链表内移除但不销毁 \end{DoxyCompactList}\item 
void \hyperlink{a00072_af42eadda32e6ed8920ec9fd6f0f5e278_af42eadda32e6ed8920ec9fd6f0f5e278}{dlist\+\_\+delete} (\hyperlink{a00056_ae098586334a621a23cef7cb17590b618_ae098586334a621a23cef7cb17590b618}{kdlist\+\_\+t} $\ast$dlist, \hyperlink{a00056_ac701f00a0851c97467ae35c382b316b7_ac701f00a0851c97467ae35c382b316b7}{kdlist\+\_\+node\+\_\+t} $\ast$node)
\begin{DoxyCompactList}\small\item\em 销毁链表节点 \end{DoxyCompactList}\item 
\hyperlink{a00056_ac701f00a0851c97467ae35c382b316b7_ac701f00a0851c97467ae35c382b316b7}{kdlist\+\_\+node\+\_\+t} $\ast$ \hyperlink{a00072_a7d5102f0d3cf28ce26a381033d6e29dc_a7d5102f0d3cf28ce26a381033d6e29dc}{dlist\+\_\+next} (\hyperlink{a00056_ae098586334a621a23cef7cb17590b618_ae098586334a621a23cef7cb17590b618}{kdlist\+\_\+t} $\ast$dlist, \hyperlink{a00056_ac701f00a0851c97467ae35c382b316b7_ac701f00a0851c97467ae35c382b316b7}{kdlist\+\_\+node\+\_\+t} $\ast$node)
\begin{DoxyCompactList}\small\item\em 取得链头当前节点的下一个节点 \end{DoxyCompactList}\item 
\hyperlink{a00056_ac701f00a0851c97467ae35c382b316b7_ac701f00a0851c97467ae35c382b316b7}{kdlist\+\_\+node\+\_\+t} $\ast$ \hyperlink{a00072_af684bff246b7633789ce4bab232676b8_af684bff246b7633789ce4bab232676b8}{dlist\+\_\+get\+\_\+front} (\hyperlink{a00056_ae098586334a621a23cef7cb17590b618_ae098586334a621a23cef7cb17590b618}{kdlist\+\_\+t} $\ast$dlist)
\begin{DoxyCompactList}\small\item\em 取得链头节点 \end{DoxyCompactList}\item 
\hyperlink{a00056_ac701f00a0851c97467ae35c382b316b7_ac701f00a0851c97467ae35c382b316b7}{kdlist\+\_\+node\+\_\+t} $\ast$ \hyperlink{a00072_a08f09dfc5e15e5953016110f4527154b_a08f09dfc5e15e5953016110f4527154b}{dlist\+\_\+get\+\_\+back} (\hyperlink{a00056_ae098586334a621a23cef7cb17590b618_ae098586334a621a23cef7cb17590b618}{kdlist\+\_\+t} $\ast$dlist)
\begin{DoxyCompactList}\small\item\em 取得链表尾节点 \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{函数说明}
\hypertarget{a00072_a60b57b500075cafe4391396066f4a4a4_a60b57b500075cafe4391396066f4a4a4}{}\index{list.\+c@{list.\+c}!dlist\+\_\+add\+\_\+front@{dlist\+\_\+add\+\_\+front}}
\index{dlist\+\_\+add\+\_\+front@{dlist\+\_\+add\+\_\+front}!list.\+c@{list.\+c}}
\subsubsection[{dlist\+\_\+add\+\_\+front}]{\setlength{\rightskip}{0pt plus 5cm}void dlist\+\_\+add\+\_\+front (
\begin{DoxyParamCaption}
\item[{{\bf kdlist\+\_\+t} $\ast$}]{dlist, }
\item[{{\bf kdlist\+\_\+node\+\_\+t} $\ast$}]{node}
\end{DoxyParamCaption}
)}\label{a00072_a60b57b500075cafe4391396066f4a4a4_a60b57b500075cafe4391396066f4a4a4}


将节点添加到链表头部 


\begin{DoxyParams}{参数}
{\em dlist} & kdlist\+\_\+t实例 \\
\hline
{\em node} & kdlist\+\_\+node\+\_\+t实例 \\
\hline
\end{DoxyParams}
\hypertarget{a00072_a0c58623fcbc3f1108a65f1a78a605d42_a0c58623fcbc3f1108a65f1a78a605d42}{}\index{list.\+c@{list.\+c}!dlist\+\_\+add\+\_\+front\+\_\+node@{dlist\+\_\+add\+\_\+front\+\_\+node}}
\index{dlist\+\_\+add\+\_\+front\+\_\+node@{dlist\+\_\+add\+\_\+front\+\_\+node}!list.\+c@{list.\+c}}
\subsubsection[{dlist\+\_\+add\+\_\+front\+\_\+node}]{\setlength{\rightskip}{0pt plus 5cm}{\bf kdlist\+\_\+node\+\_\+t}$\ast$ dlist\+\_\+add\+\_\+front\+\_\+node (
\begin{DoxyParamCaption}
\item[{{\bf kdlist\+\_\+t} $\ast$}]{dlist, }
\item[{void $\ast$}]{data}
\end{DoxyParamCaption}
)}\label{a00072_a0c58623fcbc3f1108a65f1a78a605d42_a0c58623fcbc3f1108a65f1a78a605d42}


建立新节点并添加到链表头部，同时设置节点自定义数据 


\begin{DoxyParams}{参数}
{\em dlist} & kdlist\+\_\+t实例 \\
\hline
{\em data} & 自定义数据指针 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
kdlist\+\_\+node\+\_\+t实例 
\end{DoxyReturn}
\hypertarget{a00072_a24c0ab8543c8088b435b8ac8cef43294_a24c0ab8543c8088b435b8ac8cef43294}{}\index{list.\+c@{list.\+c}!dlist\+\_\+add\+\_\+tail@{dlist\+\_\+add\+\_\+tail}}
\index{dlist\+\_\+add\+\_\+tail@{dlist\+\_\+add\+\_\+tail}!list.\+c@{list.\+c}}
\subsubsection[{dlist\+\_\+add\+\_\+tail}]{\setlength{\rightskip}{0pt plus 5cm}void dlist\+\_\+add\+\_\+tail (
\begin{DoxyParamCaption}
\item[{{\bf kdlist\+\_\+t} $\ast$}]{dlist, }
\item[{{\bf kdlist\+\_\+node\+\_\+t} $\ast$}]{node}
\end{DoxyParamCaption}
)}\label{a00072_a24c0ab8543c8088b435b8ac8cef43294_a24c0ab8543c8088b435b8ac8cef43294}


将节点添加到链表尾部 


\begin{DoxyParams}{参数}
{\em dlist} & kdlist\+\_\+t实例 \\
\hline
{\em node} & kdlist\+\_\+node\+\_\+t实例 \\
\hline
\end{DoxyParams}
\hypertarget{a00072_aca87625d54662842909b0900be717a3f_aca87625d54662842909b0900be717a3f}{}\index{list.\+c@{list.\+c}!dlist\+\_\+add\+\_\+tail\+\_\+node@{dlist\+\_\+add\+\_\+tail\+\_\+node}}
\index{dlist\+\_\+add\+\_\+tail\+\_\+node@{dlist\+\_\+add\+\_\+tail\+\_\+node}!list.\+c@{list.\+c}}
\subsubsection[{dlist\+\_\+add\+\_\+tail\+\_\+node}]{\setlength{\rightskip}{0pt plus 5cm}{\bf kdlist\+\_\+node\+\_\+t}$\ast$ dlist\+\_\+add\+\_\+tail\+\_\+node (
\begin{DoxyParamCaption}
\item[{{\bf kdlist\+\_\+t} $\ast$}]{dlist, }
\item[{void $\ast$}]{data}
\end{DoxyParamCaption}
)}\label{a00072_aca87625d54662842909b0900be717a3f_aca87625d54662842909b0900be717a3f}


建立新节点并添加到链表尾部，同时设置节点自定义数据 


\begin{DoxyParams}{参数}
{\em dlist} & kdlist\+\_\+t实例 \\
\hline
{\em data} & 自定义数据指针 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
kdlist\+\_\+node\+\_\+t实例 
\end{DoxyReturn}
\hypertarget{a00072_a8c365752ad9b0f4b633f397923f9a749_a8c365752ad9b0f4b633f397923f9a749}{}\index{list.\+c@{list.\+c}!dlist\+\_\+create@{dlist\+\_\+create}}
\index{dlist\+\_\+create@{dlist\+\_\+create}!list.\+c@{list.\+c}}
\subsubsection[{dlist\+\_\+create}]{\setlength{\rightskip}{0pt plus 5cm}{\bf kdlist\+\_\+t}$\ast$ dlist\+\_\+create (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{a00072_a8c365752ad9b0f4b633f397923f9a749_a8c365752ad9b0f4b633f397923f9a749}


创建链表 

\begin{DoxyReturn}{返回}
kdlist\+\_\+t实例 
\end{DoxyReturn}
\hypertarget{a00072_af42eadda32e6ed8920ec9fd6f0f5e278_af42eadda32e6ed8920ec9fd6f0f5e278}{}\index{list.\+c@{list.\+c}!dlist\+\_\+delete@{dlist\+\_\+delete}}
\index{dlist\+\_\+delete@{dlist\+\_\+delete}!list.\+c@{list.\+c}}
\subsubsection[{dlist\+\_\+delete}]{\setlength{\rightskip}{0pt plus 5cm}void dlist\+\_\+delete (
\begin{DoxyParamCaption}
\item[{{\bf kdlist\+\_\+t} $\ast$}]{dlist, }
\item[{{\bf kdlist\+\_\+node\+\_\+t} $\ast$}]{node}
\end{DoxyParamCaption}
)}\label{a00072_af42eadda32e6ed8920ec9fd6f0f5e278_af42eadda32e6ed8920ec9fd6f0f5e278}


销毁链表节点 


\begin{DoxyParams}{参数}
{\em dlist} & kdlist\+\_\+t实例 \\
\hline
{\em node} & 当前节点 \\
\hline
\end{DoxyParams}
\hypertarget{a00072_a975e582084cc96ee410fb3816f384774_a975e582084cc96ee410fb3816f384774}{}\index{list.\+c@{list.\+c}!dlist\+\_\+destroy@{dlist\+\_\+destroy}}
\index{dlist\+\_\+destroy@{dlist\+\_\+destroy}!list.\+c@{list.\+c}}
\subsubsection[{dlist\+\_\+destroy}]{\setlength{\rightskip}{0pt plus 5cm}void dlist\+\_\+destroy (
\begin{DoxyParamCaption}
\item[{{\bf kdlist\+\_\+t} $\ast$}]{dlist}
\end{DoxyParamCaption}
)}\label{a00072_a975e582084cc96ee410fb3816f384774_a975e582084cc96ee410fb3816f384774}


销毁整个链表，并销毁所有节点（不销毁节点内自定义数据） 


\begin{DoxyParams}{参数}
{\em dlist} & kdlist\+\_\+t实例 \\
\hline
\end{DoxyParams}
\hypertarget{a00072_ae6b794873e755bedabfc2e64e45a0dbe_ae6b794873e755bedabfc2e64e45a0dbe}{}\index{list.\+c@{list.\+c}!dlist\+\_\+empty@{dlist\+\_\+empty}}
\index{dlist\+\_\+empty@{dlist\+\_\+empty}!list.\+c@{list.\+c}}
\subsubsection[{dlist\+\_\+empty}]{\setlength{\rightskip}{0pt plus 5cm}int dlist\+\_\+empty (
\begin{DoxyParamCaption}
\item[{{\bf kdlist\+\_\+t} $\ast$}]{dlist}
\end{DoxyParamCaption}
)}\label{a00072_ae6b794873e755bedabfc2e64e45a0dbe_ae6b794873e755bedabfc2e64e45a0dbe}


空 


\begin{DoxyParams}{参数}
{\em dlist} & kdlist\+\_\+t实例 \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{返回值}
{\em 0} & 非空 \\
\hline
{\em 非零} & 空 \\
\hline
\end{DoxyRetVals}
\hypertarget{a00072_a08f09dfc5e15e5953016110f4527154b_a08f09dfc5e15e5953016110f4527154b}{}\index{list.\+c@{list.\+c}!dlist\+\_\+get\+\_\+back@{dlist\+\_\+get\+\_\+back}}
\index{dlist\+\_\+get\+\_\+back@{dlist\+\_\+get\+\_\+back}!list.\+c@{list.\+c}}
\subsubsection[{dlist\+\_\+get\+\_\+back}]{\setlength{\rightskip}{0pt plus 5cm}{\bf kdlist\+\_\+node\+\_\+t}$\ast$ dlist\+\_\+get\+\_\+back (
\begin{DoxyParamCaption}
\item[{{\bf kdlist\+\_\+t} $\ast$}]{dlist}
\end{DoxyParamCaption}
)}\label{a00072_a08f09dfc5e15e5953016110f4527154b_a08f09dfc5e15e5953016110f4527154b}


取得链表尾节点 


\begin{DoxyParams}{参数}
{\em dlist} & kdlist\+\_\+t实例 \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{返回值}
{\em kdlist\+\_\+node\+\_\+t实例} & \\
\hline
{\em 0} & 链表为空 \\
\hline
\end{DoxyRetVals}
\hypertarget{a00072_ac398fa4051e1d12953a24a9c4b011516_ac398fa4051e1d12953a24a9c4b011516}{}\index{list.\+c@{list.\+c}!dlist\+\_\+get\+\_\+count@{dlist\+\_\+get\+\_\+count}}
\index{dlist\+\_\+get\+\_\+count@{dlist\+\_\+get\+\_\+count}!list.\+c@{list.\+c}}
\subsubsection[{dlist\+\_\+get\+\_\+count}]{\setlength{\rightskip}{0pt plus 5cm}int dlist\+\_\+get\+\_\+count (
\begin{DoxyParamCaption}
\item[{{\bf kdlist\+\_\+t} $\ast$}]{dlist}
\end{DoxyParamCaption}
)}\label{a00072_ac398fa4051e1d12953a24a9c4b011516_ac398fa4051e1d12953a24a9c4b011516}


取得链表节点数量 


\begin{DoxyParams}{参数}
{\em dlist} & kdlist\+\_\+t实例 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
节点数量 
\end{DoxyReturn}
\hypertarget{a00072_af684bff246b7633789ce4bab232676b8_af684bff246b7633789ce4bab232676b8}{}\index{list.\+c@{list.\+c}!dlist\+\_\+get\+\_\+front@{dlist\+\_\+get\+\_\+front}}
\index{dlist\+\_\+get\+\_\+front@{dlist\+\_\+get\+\_\+front}!list.\+c@{list.\+c}}
\subsubsection[{dlist\+\_\+get\+\_\+front}]{\setlength{\rightskip}{0pt plus 5cm}{\bf kdlist\+\_\+node\+\_\+t}$\ast$ dlist\+\_\+get\+\_\+front (
\begin{DoxyParamCaption}
\item[{{\bf kdlist\+\_\+t} $\ast$}]{dlist}
\end{DoxyParamCaption}
)}\label{a00072_af684bff246b7633789ce4bab232676b8_af684bff246b7633789ce4bab232676b8}


取得链头节点 


\begin{DoxyParams}{参数}
{\em dlist} & kdlist\+\_\+t实例 \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{返回值}
{\em kdlist\+\_\+node\+\_\+t实例} & \\
\hline
{\em 0} & 链表为空 \\
\hline
\end{DoxyRetVals}
\hypertarget{a00072_aa6e2141ad5da25451a8b80a8195adf3d_aa6e2141ad5da25451a8b80a8195adf3d}{}\index{list.\+c@{list.\+c}!dlist\+\_\+init@{dlist\+\_\+init}}
\index{dlist\+\_\+init@{dlist\+\_\+init}!list.\+c@{list.\+c}}
\subsubsection[{dlist\+\_\+init}]{\setlength{\rightskip}{0pt plus 5cm}{\bf kdlist\+\_\+t}$\ast$ dlist\+\_\+init (
\begin{DoxyParamCaption}
\item[{{\bf kdlist\+\_\+t} $\ast$}]{dlist}
\end{DoxyParamCaption}
)}\label{a00072_aa6e2141ad5da25451a8b80a8195adf3d_aa6e2141ad5da25451a8b80a8195adf3d}


初始化链表 


\begin{DoxyParams}{参数}
{\em dlist} & kdlist\+\_\+t实例 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
kdlist\+\_\+t实例 
\end{DoxyReturn}
\hypertarget{a00072_a7d5102f0d3cf28ce26a381033d6e29dc_a7d5102f0d3cf28ce26a381033d6e29dc}{}\index{list.\+c@{list.\+c}!dlist\+\_\+next@{dlist\+\_\+next}}
\index{dlist\+\_\+next@{dlist\+\_\+next}!list.\+c@{list.\+c}}
\subsubsection[{dlist\+\_\+next}]{\setlength{\rightskip}{0pt plus 5cm}{\bf kdlist\+\_\+node\+\_\+t}$\ast$ dlist\+\_\+next (
\begin{DoxyParamCaption}
\item[{{\bf kdlist\+\_\+t} $\ast$}]{dlist, }
\item[{{\bf kdlist\+\_\+node\+\_\+t} $\ast$}]{node}
\end{DoxyParamCaption}
)}\label{a00072_a7d5102f0d3cf28ce26a381033d6e29dc_a7d5102f0d3cf28ce26a381033d6e29dc}


取得链头当前节点的下一个节点 


\begin{DoxyParams}{参数}
{\em dlist} & kdlist\+\_\+t实例 \\
\hline
{\em node} & 当前节点 \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{返回值}
{\em kdlist\+\_\+node\+\_\+t实例} & \\
\hline
{\em 0} & 没有更多节点 \\
\hline
\end{DoxyRetVals}
\hypertarget{a00072_a5580f80fa42399439b7eba9d59faae59_a5580f80fa42399439b7eba9d59faae59}{}\index{list.\+c@{list.\+c}!dlist\+\_\+node\+\_\+create@{dlist\+\_\+node\+\_\+create}}
\index{dlist\+\_\+node\+\_\+create@{dlist\+\_\+node\+\_\+create}!list.\+c@{list.\+c}}
\subsubsection[{dlist\+\_\+node\+\_\+create}]{\setlength{\rightskip}{0pt plus 5cm}{\bf kdlist\+\_\+node\+\_\+t}$\ast$ dlist\+\_\+node\+\_\+create (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{a00072_a5580f80fa42399439b7eba9d59faae59_a5580f80fa42399439b7eba9d59faae59}


创建链表节点 

\begin{DoxyReturn}{返回}
kdlist\+\_\+node\+\_\+t实例 
\end{DoxyReturn}
\hypertarget{a00072_a1e37eb90626c9cb061a4d8536d9e1c71_a1e37eb90626c9cb061a4d8536d9e1c71}{}\index{list.\+c@{list.\+c}!dlist\+\_\+node\+\_\+destroy@{dlist\+\_\+node\+\_\+destroy}}
\index{dlist\+\_\+node\+\_\+destroy@{dlist\+\_\+node\+\_\+destroy}!list.\+c@{list.\+c}}
\subsubsection[{dlist\+\_\+node\+\_\+destroy}]{\setlength{\rightskip}{0pt plus 5cm}void dlist\+\_\+node\+\_\+destroy (
\begin{DoxyParamCaption}
\item[{{\bf kdlist\+\_\+node\+\_\+t} $\ast$}]{node}
\end{DoxyParamCaption}
)}\label{a00072_a1e37eb90626c9cb061a4d8536d9e1c71_a1e37eb90626c9cb061a4d8536d9e1c71}


销毁链表节点 


\begin{DoxyParams}{参数}
{\em node} & kdlist\+\_\+node\+\_\+t实例 \\
\hline
\end{DoxyParams}
\hypertarget{a00072_abc1c6bf7dbfbdf4bffc822ddccf2d07e_abc1c6bf7dbfbdf4bffc822ddccf2d07e}{}\index{list.\+c@{list.\+c}!dlist\+\_\+node\+\_\+get\+\_\+data@{dlist\+\_\+node\+\_\+get\+\_\+data}}
\index{dlist\+\_\+node\+\_\+get\+\_\+data@{dlist\+\_\+node\+\_\+get\+\_\+data}!list.\+c@{list.\+c}}
\subsubsection[{dlist\+\_\+node\+\_\+get\+\_\+data}]{\setlength{\rightskip}{0pt plus 5cm}void$\ast$ dlist\+\_\+node\+\_\+get\+\_\+data (
\begin{DoxyParamCaption}
\item[{{\bf kdlist\+\_\+node\+\_\+t} $\ast$}]{node}
\end{DoxyParamCaption}
)}\label{a00072_abc1c6bf7dbfbdf4bffc822ddccf2d07e_abc1c6bf7dbfbdf4bffc822ddccf2d07e}


取得节点自定义数据 


\begin{DoxyParams}{参数}
{\em node} & kdlist\+\_\+node\+\_\+t实例 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
自定义数据指针 
\end{DoxyReturn}
\hypertarget{a00072_a743378abbafebd0aa14ff754c7bbe9b5_a743378abbafebd0aa14ff754c7bbe9b5}{}\index{list.\+c@{list.\+c}!dlist\+\_\+node\+\_\+init@{dlist\+\_\+node\+\_\+init}}
\index{dlist\+\_\+node\+\_\+init@{dlist\+\_\+node\+\_\+init}!list.\+c@{list.\+c}}
\subsubsection[{dlist\+\_\+node\+\_\+init}]{\setlength{\rightskip}{0pt plus 5cm}{\bf kdlist\+\_\+node\+\_\+t}$\ast$ dlist\+\_\+node\+\_\+init (
\begin{DoxyParamCaption}
\item[{{\bf kdlist\+\_\+node\+\_\+t} $\ast$}]{node}
\end{DoxyParamCaption}
)}\label{a00072_a743378abbafebd0aa14ff754c7bbe9b5_a743378abbafebd0aa14ff754c7bbe9b5}


初始化链表节点 


\begin{DoxyParams}{参数}
{\em node} & kdlist\+\_\+node\+\_\+t实例 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
kdlist\+\_\+node\+\_\+t实例 
\end{DoxyReturn}
\hypertarget{a00072_ae845fbc2a6ba73590161f04340dabed8_ae845fbc2a6ba73590161f04340dabed8}{}\index{list.\+c@{list.\+c}!dlist\+\_\+node\+\_\+set\+\_\+data@{dlist\+\_\+node\+\_\+set\+\_\+data}}
\index{dlist\+\_\+node\+\_\+set\+\_\+data@{dlist\+\_\+node\+\_\+set\+\_\+data}!list.\+c@{list.\+c}}
\subsubsection[{dlist\+\_\+node\+\_\+set\+\_\+data}]{\setlength{\rightskip}{0pt plus 5cm}{\bf kdlist\+\_\+node\+\_\+t}$\ast$ dlist\+\_\+node\+\_\+set\+\_\+data (
\begin{DoxyParamCaption}
\item[{{\bf kdlist\+\_\+node\+\_\+t} $\ast$}]{node, }
\item[{void $\ast$}]{data}
\end{DoxyParamCaption}
)}\label{a00072_ae845fbc2a6ba73590161f04340dabed8_ae845fbc2a6ba73590161f04340dabed8}


设置节点自定义数据 


\begin{DoxyParams}{参数}
{\em node} & kdlist\+\_\+node\+\_\+t实例 \\
\hline
{\em data} & 自定义数据指针 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
kdlist\+\_\+node\+\_\+t实例 
\end{DoxyReturn}
\hypertarget{a00072_a4458c5c60c2d15b434d33255429a633d_a4458c5c60c2d15b434d33255429a633d}{}\index{list.\+c@{list.\+c}!dlist\+\_\+remove@{dlist\+\_\+remove}}
\index{dlist\+\_\+remove@{dlist\+\_\+remove}!list.\+c@{list.\+c}}
\subsubsection[{dlist\+\_\+remove}]{\setlength{\rightskip}{0pt plus 5cm}{\bf kdlist\+\_\+node\+\_\+t}$\ast$ dlist\+\_\+remove (
\begin{DoxyParamCaption}
\item[{{\bf kdlist\+\_\+t} $\ast$}]{dlist, }
\item[{{\bf kdlist\+\_\+node\+\_\+t} $\ast$}]{node}
\end{DoxyParamCaption}
)}\label{a00072_a4458c5c60c2d15b434d33255429a633d_a4458c5c60c2d15b434d33255429a633d}


将节点从链表内移除但不销毁 


\begin{DoxyParams}{参数}
{\em dlist} & kdlist\+\_\+t实例 \\
\hline
{\em node} & 当前节点 \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{返回值}
{\em kdlist\+\_\+node\+\_\+t实例} & \\
\hline
\end{DoxyRetVals}
